package com.imooc.pojo.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author lihongyu
 * @CreateTime 2021-08-10 14:32
 * @Description 分类视图层封装实体
 */
@ApiModel("分类视图层封装实体")
public class CategoryVO implements Serializable {

    /**
     * 分类编码
     */
    @ApiModelProperty(name = "id",value = "分类编码",dataType = "Integer")
    private Integer id;

    /**
     * 分类名称
     */
    @ApiModelProperty(name = "name",value = "分类名称",dataType = "String")
    private String name;

    /**
     * 分类层级
     */
    @ApiModelProperty(name = "type",value = "分类层级",dataType = "String")
    private String type;

    /**
     * 父级编码
     */
    @ApiModelProperty(name = "fatherId",value = "父级编码",dataType = "Integer")
    private Integer fatherId;

    /**
     * 三级分类vo list
     */
    @ApiModelProperty(name = "subCatList",value = "三级分类vo",dataType = "SubCategoryVO")
    private List<SubCategoryVO> subCatList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getFatherId() {
        return fatherId;
    }

    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public List<SubCategoryVO> getSubCatList() {
        return subCatList;
    }

    public void setSubCatList(List<SubCategoryVO> subCatList) {
        this.subCatList = subCatList;
    }
}
